package org.brownflat.lighthouse.ci;

import java.util.Comparator;
import java.util.Date;

public class AscendingDateComparator implements Comparator<Date> {
	
	@Override
	public int compare(Date dateA, Date dateB) {
		if(dateA.after(dateB)) {
			return 1;
		} else if (dateA.before(dateB)) {
			return -1;
		}
		return 0;
	}
}
